<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>干部出国查询</title>
    <meta name="keywords" content="干部出国查询" />
    <meta name="description" content="干部出国查询" />
    <link href="/static/css/party/style.css" rel="stylesheet" type="text/css">
    <link href="/static/js/party/myfocus/js/mf-pattern/mF_classicHC.css" rel="stylesheet" type="text/css">
    <link rel="stylesheet" href="/static/webjars/layui/css/layui.css"  media="all">
    <script type="application/javascript" src="/static/webjars/layui/layui.js"></script>
    <script type="application/javascript" src="/static/js/jquery.min.js"></script>
    <link rel="stylesheet" href="/static/css/party/foot.css"/>

    <link href="/static/css/party/bootstrap.min.css" rel="stylesheet" type="text/css">
    <link href="/static/css/party/common.css" rel="stylesheet" type="text/css">
    <link href="/static/css/party/common2018.css.css" rel="stylesheet" type="text/css">
    <link href="/static/css/party/iconfont.css" rel="stylesheet" type="text/css">

    <link href="/static/css/party/font-awesome.min.css" rel="stylesheet" type="text/css">
    <script type="application/javascript" src="/static/js/party/template-web.js"></script>
    <script type="application/javascript" src="/static/js/party/template-web-extends.js"></script>
    <script type="application/javascript" src="/static/js/party/boorstap.min.js"></script>
    <script type="application/javascript" src="/static/js/party/common.js"></script>
    <style>
        body{
            background-color: #DEEAEA;
        }

    </style>
</head>
<body>
<div class="padlogo w1200 mt50">
    <div class="danghui fl ml25"><img src="/static/images/party/img/danghui.gif"/></div>
    <div class="logo fl ml20 mt8"><img src="/static/images/party/img/logo.png"/></div>
    <div class="slogo fr"><embed src="/static/images/party/img/donghua.swf" width="600" height="150" wmode="transparent" /></div>
    <div class="clear"></div>
</div>

<div class="w1000 mt60" >
    <ul class="nav" style="text-align: center" id="dingbu">
        <li class="bg2">&nbsp;</li>
        <li class="bg2" style="width: 143px;" party-src="/party/home/index"><a href="javascript:;">首页</a></li>
        <li class="bg2" style="width: 143px" party-src="/party/home/news"><a href="javascript:;">新闻资讯</a></li>
        <li class="bg2" style="width: 143px" party-src="/party/home/education"><a href="javascript:;">教育培训</a></li>
        <li class="bg2" style="width: 143px" party-src="/party/home/service"><a href="javascript:;">服务大厅</a></li>
        <li class="bg2" style="width: 143px" party-src="/party/home/map"><a href="javascript:;">党建地图</a></li>
        <li class="bg2" style="width: 143px"><a href="/party/home/admin" target="_blank">后台管理</a></li>

        <%--<li class="bg2"><a href='/views/party/fore/index1.jsp' target='_blank'>后台管理</a></li>--%>
    </ul>

</div>
<div class='nav_bg w1000 mt30'><img src='/static/images/party/img/nav_bg.png' class='tcenter'/></div>

<div class="clearfix"></div>

<div class="container" style="height: 678px;">
    <div class="row" style="margin-top:10px">
        <div class="col-sm-6"><h4 class="service-red-border" style="color: #CC0000"><img src="/static/images/party/img/chuguosq.png">干部因私出国（境）申请 <small style="color: #CC0000"> 请认真填写必填项</small></h4></div>
        <div class="col-sm-6 text-right"><button type="button" class="btn btn-warning">查询出国档案</button></div>

    </div>
    <div class="row" style="background-color: #F5F5F5; padding: 10px;">
        <div class="col-sm-12" style="background-color: #DEEAEA; ">
            <div class="form-group col-md-8 col-md-offset-2">
                <br><br>


                <div class="col-sm-9 col-md-offset-2" style="margin-bottom: 20px; text-align: center">
                    <h3 class="gb-form-font2"><br><img src="/static/images/party/img/12380-icon04.png"> 请输入您要查询的档案码 </h3><br>

                    <input type="text" class="form-control form-control-bg" id="code" placeholder="查询码">
                    <h5 class="text-center"><a class="btn btn-danger" onclick="serch()">查询</a></h5>

                </div>
            </div>
        </div>
    </div>
    <br />
</div>


<div id="ft" class="clearfix">
    <div class="ft-center">
        <span>智慧兴文公共信息平台:&nbsp;</span>
        <a>All Rights Reserved.&nbsp;&nbsp;</a>
        <span>版权所有:&nbsp;</span>
        <a href="http://www.ituohui.com/" target="_blank">四川省数聚汇智科技有限公司</a>
    </div>
</div>

</body>
</html>
<script type="application/javascript">
    $("li[party-src]").click(function(){
        var that = $(this);
        var src = that.attr("party-src");
        window.location.href = src;
    });
</script>

<script>
    function add() {
        var idcard = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/;
        var phone = /^1[3|4|5|8][0-9]\d{4,8}$/;
        if (!$("#name").val()) { alert('请输入姓名'); return; }
        if (!$("#nativePlace").val()) { alert('请输入籍贯'); return; }
        if (!$("#linkphone").val()) { alert('请输入手机号码'); return; }
        if (!phone.test($("#linkphone").val())) {alert("请输入正确的手机号!"); return; }
        if (!$("#idCard").val()) { alert('请输入身份证号'); return; }
        if (!idcard.test($("#idCard").val())) { alert("请输入正确的身份证号!"); return; }
        if (!$("#headImage").val()) {alert('请上传头像'); return; }
        if (!$("#unitGuid").val()) { alert('请选择入党党支部'); return; }
        if (!$("#graduateSchool").val()) { alert('请输入毕业院校'); return; }
        if (!$("#virtue").val()) { alert('请输入特长'); return; }
        if (!$("#applicationForm").val()) { alert('请上传入党申请书'); return; }
        if (!$("#liveNow").val()) {alert('请填写现居地'); return; }
        var inData = { name: $("#name").val(), sex: $(':checked').val(), nativePlace: $("#nativePlace").val(), liveNow: $("#liveNow").val(), nation: $("#nation").val(), linkphone: $("#linkphone").val(), idCard: $("#idCard").val(), headImage: $("#headImage").val(), unitGuid: $("#unitGuid").val(), education: $("#education").val(), graduateSchool: $("#graduateSchool").val(), profession: $("#profession").val(), industry: $("#industry").val(), virtue: $("#virtue").val(), applicationForm: $("#applicationForm").val(), applicationDate: new Date() };
        Api.ajax({
            type: "post",
            url: "DevelopMemberManagement/Add",
            data: inData,
            dyejuri:false,
            success: function (datas) {
                if (datas.Flag == "1") {
                    alert('申请成功！');
                    reset();
                } else {
                    alert(datas.Msg);

                }
            }
        });
    }
    function reset() {
        location.reload();
    }
    function init() {
        getNewCode('Nation', 'nation');
        getCode('Educational', 'education');
        getCode('profession', 'profession');
        getCode('Industry', 'industry');
    }
    $('#headImageFile').click(function () {            Api.open(['/website/fileinput.html', 'no'], null, '450px', null,
        function (index) {
            var body = layer.getChildFrame('body', index);  //此处我理解的是加载目标页面的内容
            var fileInfo = (body.find('#fileInfo').val());　　//查到目标页面的内容赋给当前页面元素
            layer.close(index);//这块是点击确定关闭这个弹出层
            $("#headImageFile").val(fileInfo.split("|")[0]);
            $("#headImage").val(fileInfo.split("|")[1]);
        });
    });

    $('#applicationFormFile').click(function () {
        Api.open(['/website/fileinput.html', 'no'], null, '450px', null,
            function (index) {
                var body = layer.getChildFrame('body', index);  //此处我理解的是加载目标页面的内容
                var fileInfo = (body.find('#fileInfo').val());　　//查到目标页面的内容赋给当前页面元素
                layer.close(index);//这块是点击确定关闭这个弹出层
                $("#applicationFormFile").val(fileInfo.split("|")[0]);
                $("#applicationForm").val(fileInfo);
            });
    });


    function th1(select) {
        $("#" + select).val(localStorage.url1);
    }
    function getCode(codeGroupValue, select) {
        var inData = { Params: { codeGroupValue: codeGroupValue } };
        Api.ajax({
            type: "post",
            url: "BaseCodeManager/GetCode",
            data: inData,
            dyejuri:false,
            success: function (datas) {
                if (datas.Flag == "1") {
                    var d = datas.Data;
                    for (var i = 0; i < d.length; i++) {
                        if (i == 0) {
                            $("#" + select).append('<option selected="selected" value="' + d[i].codeOptionValue + '" >' + d[i].codeOptionName + '</option>');
                        } else {
                            $("#" + select).append('<option  value="' + d[i].codeOptionValue + '" >' + d[i].codeOptionName + '</option>');
                        }
                    }
                }
            }
        });
    }
    $("#UnitName").click(function () {
        layer.open({
            type: 2,
            title: '选择单位',
            maxWidth: 320,
            scrollbar: false, // 父页面 滚动条 禁止
            area: ['300px', '500px'],
            content: ['Script/unittree/unittree.html', 'no']
        });
    });
    $("#UnitName").keyup(function () {
        $("#UnitName").val("");
    });

    function treeCallBack(selUnitName, selUnitGuid, selUnitPath) {
        $("#UnitName").val(selUnitName);
        $("#unitGuid").val(selUnitGuid);
    }
    init();
</script>
<script type="application/javascript">
    $(function () {
        var allHeught = document.body.scrollHeight;
        APP.resize(allHeught);

    })
</script>